home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Demos / AppMaker 2.0b3 / Demo AppMaker 1.5 / Demo AppMaker™ / Demo AppMaker™.rsrc / TmCT_103_Doc < prev    next >
Encoding:
Text File  |  1992-04-08  |  1.3 KB  |  52 lines

  1. /* %filename% -- document methods */
  2. /* Created %date% %time% by AppMaker */
  3.  
  4. /*    This module overrides the AppMaker-generated code in z%Appname%Doc.%    %*/
  5. /*    It provides a place for you to add your own code and still be able to    */
  6. /*    generate code for new changes to the user interface.  This module will    */
  7. /*    not be regenerated by AppMaker unless you delete it.  Its superclass,    */
  8. /*    z%Appname%Doc, may be regenerated to handle user interface changes    %    %*/
  9. /*    without losing your hand-coded changes to this module.                    */
  10.  
  11. #include <Commands.h>
  12. #include <CBartender.h>
  13. #include "ResourceDefs.h"
  14. #include "%Appname%Data.h"
  15. %for each menu gen includeDocDialogs%
  16. #include "%Appname%Doc.h"
  17.  
  18. extern    CBartender        *gBartender;    /* The menu handling object */
  19.  
  20. /*----------*/
  21. void    C%Appname%Doc::I%Appname%Doc%    %(CApplication    *aSupervisor,
  22.                                          Boolean        printable)
  23. {
  24.     inherited::I%Appname%Doc (aSupervisor, printable);
  25.  
  26.     // your application-specific initialization:
  27.  
  28. } /* I%Appname%Doc */
  29.  
  30. /*----------*/
  31. void    C%Appname%Doc::UpdateMenus        (void)
  32. {
  33.     inherited::UpdateMenus ();
  34.     %for each menu gen updateDocMenus%
  35.  
  36. } /* UpdateMenus */
  37.  
  38. /*----------*/
  39. void    C%Appname%Doc::DoCommand    (long        theCommand)
  40. {
  41.     switch (theCommand) {
  42.         %for each menu gen handleDocItems%
  43.  
  44.         default:
  45.                 inherited::DoCommand (theCommand);
  46.             break;
  47.     } /* switch */
  48.  
  49. } /* DoCommand */
  50.  
  51. /* %filename% */
  52.